package com.chen.array;

public class ArrayDemo5 {
    public static void main(String[] args) {
        printArray();
    }

    public static void printArray() {
        String[] [] classRoom = {
                {"张三", "李四", "王五"},
                {"小王", "小李", "小张"},
                {"小赵", "小钱", "小孙"},
                {"小王", "小王", "小王"},
        };
        for (int i = 0; i < classRoom.length; i++) {
            for (int j = 0; j < classRoom[i].length; j++) {
                System.out.print(classRoom[i][j] + "\t");
            }
            System.out.println();
        }

        // 动态初始化
        String[][] classRoom2 = new String[4][3];



    }
}

